using UnityEngine;
using UnityEngine.EventSystems;

namespace GameToolkit.UI
{
    public class ClickHandler : MonoBehaviour, IPointerClickHandler
    {
        public event System.Action onClick;
        public void OnPointerClick(PointerEventData eventData)
        {
            onClick?.Invoke();
        }
    }
}